// 循环两次
function hasCross(headA,headB) {
    while(headA){
        headA.tag = true;
        headA = headA.next
    }

    while(headB){
        if(headB.tag) return true
        headB = headB.next
    }
    return false
}